<!DOCTYPE html>
<html>
    <head>
        <title>表格数据搜索</title>
        <link rel="stylesheet" href="./style.css" />
        <script src="./index.js"></script>
    </head>
    <body>
        <input type="text" id="myInput" onkeyup="myFunction()" placeholder="搜索...">

        <table id="myTable">
            <tr class="header">
                <th style="width:60%;">名称</th>
                <th style="width:40%;">城市</th>
            </tr>
            <tr>
                <td>Alfreds Futterkiste</td>
                <td>Germany</td>
            </tr>
            <tr>
                <td>Berglunds snabbkop</td>
                <td>Sweden</td>
            </tr>
            <tr>
                <td>Island Trading</td>
                <td>UK</td>
            </tr>
            <tr>
                <td>Koniglich Essen</td>
                <td>Germany</td>
            </tr>
        </table>
    </body>
</html>